package com.lingchen.boot.service;

import com.lingchen.boot.utils.HttpClientUtil;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * I'm a cute code dog
 * User: LingChen
 * Date:2017/6/29
 * Time:17:31
 */
public class Bingfa  implements Runnable{
    final AtomicInteger number = new AtomicInteger();
    volatile boolean bol = false;
    @Override
    public void run() {
     //   System.out.println(number.getAndIncrement());
            try {
                if (!bol) {
                    System.out.println(bol);
                    bol = true;
                    Thread.sleep(10000);
                }
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            HttpClientUtil.sendGetRequest("http://127.0.0.1:3333/page/index","utf-8",null);
          //  System.out.println("并发数量为" + number.intValue());


    }
}
